<?php
/**
 * JoosFish - Multi Lingual extention and translation manager for Joostina CMS
 * Copyright (C) 2011 Joostina Team
 * 
 * @name JoosFish
 * @copyright © 2011 Joostina team, © 2003-2007 Think Network GmbH, Munich
 * @license GNU General Public License version 2
 * @version 1.8.2.1
 * @package Joostina
 *
 * Based on the source code of Joom!Fish 1.8.2 copyrighted by Think
 * Network GmbH, Munich. The main contribution is made by developers of
 * Joom!Fish project, but the main reason behind making JoosFish an alongside
 * project is to maintain it's compatibility with Joostina CMS 1.3.x
 * 
 * For full copyright note see documetation/COPYRIGHT.php
 * 
 * For changes see documentation/CHANGELOG.php
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * -----------------------------------------------------------------------------
 * $Id: toolbar.joomfish.html.php 8 2011-06-30 08:23:14Z hnatt88@gmail.com $
 *
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

class MENU_joomfish {

	function CONFIG_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::save();
		mosMenuBar::spacer();
		mosMenuBar::apply();
		mosMenuBar::spacer();
		mosMenuBar::cancel();
		mosMenuBar::spacer();
		mosMenuBar::endTable();
	}

	function CONFIGLANG_MENU() {

		mosMenuBar::startTable();
		mosMenuBar::deleteList();
		mosMenuBar::spacer();
		mosMenuBar::save();
		mosMenuBar::spacer();
		mosMenuBar::apply();
		mosMenuBar::spacer();
		mosMenuBar::cancel();
		mosMenuBar::spacer();
		mosMenuBar::endTable();
	}

	function EDIT_MENU() {
	    mosMenuBar::startTable();
	    mosMenuBar::editList();
	    mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
	    mosMenuBar::endTable();
	}

  	function EDIT_ELEMENTS_MENU() {
	    mosMenuBar::startTable();
	    mosMenuBar::editList('edit',JTEXT::_('VIEW'));
	    mosMenuBar::spacer();
	    mosMenuBar::custom( 'install', 'upload.png', 'upload_f2.png', JText::_('INSTALL'), false);
	    mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
	    mosMenuBar::endTable();
  	}

  	function INSTALL_ELEMENTS_MENU() {
	    mosMenuBar::startTable();
	    mosMenuBar::deleteList();
	    mosMenuBar::spacer();
	    mosMenuBar::custom( 'back', 'back.png', 'back_f2.png', JText::_('Back'), false);
	    mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
	    mosMenuBar::endTable();
  	}

	function TRANSLATION_OVERVIEW_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::publishList();
		mosMenuBar::spacer();
		mosMenuBar::unpublishList();
//		mosMenuBar::divider();
//		mosMenuBar::custom('setdefaulttext', 'new.png', 'new_f2.png', JText::_('Set default text'), false);
//		mosMenuBar::custom('setcomplete', 'copy.png', 'copy_f2.png', JText::_('Set complete'), false);
		mosMenuBar::spacer();
    	mosMenuBar::editListX();
		mosMenuBar::spacer();
		mosMenuBar::deleteList();
		mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
		mosMenuBar::endTable();
	}

	function TRANSLATE_MENU() {
		mosMenuBar::startTable();
		if (mosGetParam($_REQUEST,"catid","")=="content"){
			mosMenuBar::preview('../components/com_joomfish/previewtranslation',true);
		}

		//mosMenuBar::divider();
		mosMenuBar::save();
		mosMenuBar::spacer();
		mosMenuBar::apply();
		mosMenuBar::spacer();
		mosMenuBar::cancel();
		mosMenuBar::spacer();
		mosMenuBar::endTable();
	}

	function ORPHAN_DETAIL_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::back();
		mosMenuBar::spacer();
		mosMenuBar::custom( 'remove', 'delete.png', 'delete_f2.png', JText::_('Delete'), false );
		mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
		mosMenuBar::endTable();

	}

	function ORPHAN_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::deleteList();
		mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
		mosMenuBar::endTable();

	}

	function UPGRADE_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::spacer();
		mosMenuBar::custom( 'upgrade', 'upload.png', 'upload_f2.png', JText::_('Upgrade'), false );
		mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
		mosMenuBar::endTable();
	}

	function DEFAULT_MENU() {
		mosMenuBar::startTable();
		mosMenuBar::back();
		mosMenuBar::spacer();
		mosMenuBar::custom( 'cpanel', '../components/com_joomfish/images/joomfish_bar.png', '../components/com_joomfish/images/joomfish_bar_f2.png', JText::_('CPanel'), false );
		mosMenuBar::endTable();
	}
}
?>
